package com.hgw.Demo01_ChainOfResponsibilityPattern.Exercises16_8_4;

/**
 * Data time:2021/12/16 15:53
 * StudentID:2019112118
 * Author:hgw
 * Description: 开会讨论类，充当具体处理者
 */
public class MilitaryCouncil extends Officer{
    public MilitaryCouncil(String name) {
        super(name);
    }
    @Override
    public void processRequest(Mission mission) {
        if (mission.getNumPeo() >= 200 ) {
            System.out.println("军情：" + mission.getInformation() + mission.getNumPeo() + "; 开会讨论：" + "下达作战命令！");
        } else {
            System.out.println("乱套啦！");
        }
    }
}
